@import "reset";

.main {
  background: #98a6b2;
}

.item {
  position: relative;
}

.title {
  color: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

}

.item-nav {
  position: absolute;
  right: 30px;
  bottom: 30px;
  li {
    margin-top: 5px;
  }
  a {
    color: #ffffff;
    font-size: 30px;
    &:hover {
      color: #ff9f00;
    }
  }
}

.text-box {
  position: absolute;
  color: #ffffff;
  z-index: 1;
  .line {
    width: 0;
    border: 2px solid transparent;
    transition: all 0.5s ease-in-out;
  }
  &:hover {
    .line {
      width: 100%;
      border: 2px solid #ff9f00;
    }
  }
  p {
    margin: 15px 0;
    font-size: 24px;
  }
}

.logo-box {
  position: absolute;
  width: 365px;
  top: 50px;
  left: 50px;
}

#insist, #quality {
  .text-box {
    top: 50%;
    right: 10%;
    transform: translate(0, -50%);
  }
}

#teamwork, #method, #experience {
  .text-box {
    top: 10%;
    left: 10%;
  }
}

#experience {
  box-sizing: border-box;
  .video-box {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    padding: 10%;
    video {
      width: 100%;
      height: 100%;
    }
  }
  .video-btn {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 60px;
    height: 60px;
  }
}

#new {
  bottom: 10%;
  right: 10%;
  position: absolute;
  color: #ffffff;
  padding-bottom: 15px;
  .line {
    width: 0;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
  }
  &:hover {
    .line {
      width: 100%;
      border: 2px solid #ff9f00;
    }
  }
  p {
    margin: 15px 0;
    font-size: 24px;
  }
}

#customer {

  .text-box {
    left: 50%;
    top: 40%;
    transform: translate(-50%, 0);
    .line {
      width: 0;
      margin: 10px auto;

    }
    &:hover {
      .line {
        width: 100%;
        border: 2px solid #ff9f00;
      }
    }

  }
}

#about {
  padding: 50px 50px 0 50px;
  .img-box {
    width: 350px;
  }
  .text-box {
    top: 70px;
    right: 55px;
  }
}

#customer-item {
  padding: 0 90px;
  margin-top: -15px;
}

.animate-box {
  position: absolute;
  right: 10%;
  bottom: 10%;
  li {
    text-align: center;
    color: #ffffff;
    display: inline-block;
    margin: 0 5px;
    img {
      width: 60px;
      height: 60px;
    }
    p {
      font-size: 16px;
      margin-top: 15px;
    }
  }
  .jia {
    vertical-align: top;
    padding-top: 15px;
    font-size: 30px;
  }
}

.box {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  position: relative;
  background-color: #eaedf0;
  padding: 20px;
  margin: 0 auto;
  margin-bottom: 20px;

  .icon-box {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }
  p {
    margin-top: 20px;
    font-size: 24px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }
  .box-content {
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.8);;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    .text {
      color: #ffffff;
    }
  }
  &:hover {
    .box-content {
      animation-name: loading;
      animation-duration: 1200ms;
      animation-iteration-count: 1;
      animation-timing-function: linear;
      opacity: 1;
    }
  }
}

@keyframes loading {
  0% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }
  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }
  100% {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

@media (max-width: 992px) {
  .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  h1 {
    font-size: 34px;
  }

  .item-nav a {
    font-size: 28px;
  }

  .text-box p {
    font-size: 20px;
  }

  #about .img-box {
    width: 300px;
  }

  .box {
    padding: 15px;
    .icon-box {
      width: 100px;
      height: 100px;

    }
    p {
      margin-top: 15px;
      font-size: 14px;
    }
    .box-content {
      padding: 20px;
    }

  }

  #experience {

    .video-btn {
      width: 50px;
      height: 50px;
    }
  }

}

@media (max-width: 768px) {
  .logo-box {
    width: 160px;
    top: 20px;
    left: 20px;
  }

  h1 {
    font-size: 16px;
  }

  .item-nav {
    right: 10px;
    bottom: 10px;
    a {
      font-size: 12px;
    }
  }

  .text-box p {
    font-size: 12px;
    margin: 10px 0;
  }

  #new {

    p {
      font-size: 12px;
      margin: 10px 0;
    }
  }

  #about .img-box {
    width: 250px;
  }

  #about {
    padding: 15px 15px 0 15px;
  }

  #customer-item {
    padding: 0 20px;
    margin-top: 20px;
  }

  .animate-box {
    width: 100%;
    right: 0;
    text-align: center;

    li {
      img {
        width: 50px;
        height: 50px;
      }
      p {
        font-size: 12px;
        margin-top: 12px;
      }
    }
    .jia {
      vertical-align: top;
      padding-top: 15px;
      font-size: 18px;
    }
  }

  #experience {

    .video-btn {
      width: 40px;
      height: 40px;
      bottom: 5%;
      right: 5%;
    }
  }
}

@media (max-width: 414px) {
  #about {
    overflow: hidden;
    padding: 10px 5px 0 5px;
    .img-box {
      width: 125px;
    }
    .text-box {
      top: 15px;
      right: 10px;

    }
  }

  #experience {

    .video-btn {
      position: absolute;

      width: 25px;
      height: 25px;
    }
  }
}

